package com.binvshe.binvshe.common.web;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.binvshe.binvshe.R;
import com.pachong.android.baseuicomponent.activity.BaseActivity;

import butterknife.Bind;

public class RuleActivity extends BaseActivity {

    @Bind(R.id.iv_rule_back)
    ImageView mIvRuleBack;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        hideToolbar();
        mIvRuleBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }

    public static final void start(Activity activity) {
        Intent intent = new Intent(activity, RuleActivity.class);
        activity.startActivity(intent);
    }

    @Override
    public View createDataView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.activity_rule, null);
    }
}
